package com.lc.cms.dao;

import com.lc.cms.dto.PermissionDto;
import com.lc.cms.dto.PermissionPagingParameterDto;
import com.lc.cms.model.PermissionModel;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IPermissionDao {

    int create(PermissionModel permission);

    int update(PermissionModel permission);

    int delete(int permissionId);

    int deleteRolePermissionByPermissionId(int permissionId);

    int deleteDepartmentPermissionByPermissionId(int permissionId);

    List<PermissionDto> getListAll();

    List<PermissionDto> getListPagingByCondition(PermissionPagingParameterDto permission);

    int getCountByCondition(PermissionPagingParameterDto permission);
}
